package com.jessechanrui.template.common.template.auth.config;

import com.jessechanrui.template.common.template.auth.config.handler.CustomMetaObjectHandler;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chenrui
 * @version 1.0
 * @description RerankModelConfig
 * @date 2025/4/25
 */
@Configuration
public class BaseAutoConfiguration {

    // TODO: 暂且配置为默认的租户ID
    @Value("${auth.center.tenantId:tenant-agree}")
    private String tenantId;

    /**
     * mybatis 创建时间、更新时间自动填充
     * @return
     */
    @Bean
    public CustomMetaObjectHandler metaObjectHandler(){
        return new CustomMetaObjectHandler(tenantId);
    }

}
